package com.example.pm.ending.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
 * 员工表
 * @author 范佳阳
 */
@Data
public class EmpAddDTO implements Serializable {
    /**
     * 员工名称
     */
    @ApiModelProperty(value = "员工名称", required = true, example = "员工名称")
    @NotNull(message = "添加员工失败，必须提交员工名称！")
    private String name;
    /**
     * 员工手机号
     */
    @ApiModelProperty(value = "员工手机号", required = true, example = "手机号")
    @NotNull(message = "添加员工失败，必须提交员工手机号！")
    private String phone;
    /**
     * 员工年龄
     */
    @ApiModelProperty(value = "员工年龄", required = true, example = "员工年龄")
    @NotNull(message = "添加员工失败，必须提交员工年龄！")
    private String age;
    /**
     * 员工身份证
     */
    @ApiModelProperty(value = "员工身份证", required = true, example = "身份证")
    @NotNull(message = "添加员工失败，必须提交员工身份证！")
    private String idCard;
    /**
     * 部门与职务关联id
     */
    @ApiModelProperty(value = "部门与职务关联id", required = true, example = "部门与职务关联id")
    @NotNull(message = "添加员工失败，必须提交部门与职务关联id！")
    private Long deptJobRelId;
    /**
     * 负责栋id
     */
    @ApiModelProperty(value = "负责栋id", required = true, example = "负责栋id")
    @NotNull(message = "添加员工失败，必须提交负责栋id！")
    private Long houseBuildId;
    /**
     * 负责车库区号id
     */
    @ApiModelProperty(value = "负责车库区号id", required = true, example = "负责车库区号id")
    @NotNull(message = "添加员工失败，必须提交负责车库区号id！")
    private Long carportArea;
    /**
     * 在职状态
     */
    @ApiModelProperty(value = "在职状态", required = true, example = "在职状态")
    @NotNull(message = "添加员工失败，必须提交员工在职状态！")
    private Integer enable;
    /**
     * 工资
     */
    @ApiModelProperty(value = "工资", required = true, example = "工资")
    @NotNull(message = "添加员工失败，必须提交员工工资！")
    private Double salary;
    /**
     * 工资发放状态
     */
    @ApiModelProperty(value = "工资发放状态", required = true, example = "工资发放状态")
    @NotNull(message = "添加员工失败，必须提交员工工资发放状态！ ")
    private Integer salaryEnable;

}
